package com.lhy.mymall.mapper;

import com.lhy.mymall.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author: 卢辉宇
 * @date: 2022/12/2 20:53
 * @description:
 */
@Mapper
@Repository
public interface UserMapper {
    User selectByPrimaryKey(Integer id);
    User selectByName(String username);
    int insertRegister(User user);
    User selectLogin(@Param("userName") String userName,@Param("password") String password);
    int updateByPrimaryKey(User user);

    User selectOneByEmailAddress(String emailAddress);
}
